import request from '@/utils/request'

// 查询报失记录列表
export function listLoss(query) {
  return request({
    url: '/found/loss/list',
    method: 'get',
    params: query
  })
}

// 查询报失记录详细
export function getLoss(lostId) {
  return request({
    url: '/found/loss/' + lostId,
    method: 'get'
  })
}

// 新增报失记录
export function addLoss(data) {
  return request({
    url: '/found/loss',
    method: 'post',
    data: data
  })
}

// 修改报失记录
export function updateLoss(data) {
  return request({
    url: '/found/loss',
    method: 'put',
    data: data
  })
}

// 删除报失记录
export function delLoss(lostId) {
  return request({
    url: '/found/loss/' + lostId,
    method: 'delete'
  })
}
